package cn.edu.neusoft.dnui.startproject.model;

import cn.edu.neusoft.dnui.startproject.bean.WeatherInfo;
import cn.edu.neusoft.dnui.startproject.iface.WeatherIface;
import cn.edu.neusoft.dnui.startproject.listener.WeatherListener;
import cn.edu.neusoft.dnui.startproject.service.WeatherService;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by Administrator on 2017/5/7.
 */

public class WeatherModel implements WeatherIface {
    private Retrofit retrofit;
    private WeatherService service;
    public static final String BASE_URL="http://www.weather.com.cn";


    public WeatherModel() {
        retrofit=new Retrofit.Builder()
                .baseUrl(BASE_URL)
                .addConverterFactory(GsonConverterFactory.create())
                .build();
    }

    @Override
    public WeatherInfo getWeather(String c, WeatherListener l) {

    }
}
